<script setup>
import { ref } from 'vue'
import { useSystemStore } from '@/store/system.js'
import { storeToRefs } from 'pinia'
const usesystem = useSystemStore()

const { count } = storeToRefs(usesystem)
const onBtn = () => {
    usesystem.testFn()
}
</script>

<template>
    <div>
        <h1>仪表盘</h1>
        <h1>{{count}}</h1>
    </div>
    <el-button @click="onBtn">按钮</el-button>
</template>

<style scoped>
</style>